{template top}
<div id="content">
	<div class="message_bar">
		<div class="head_box">
   			<div class="head_pic">
   				<a href="" onclick="showHeadIconBox();return false;"><img id="currentHeadIcon" width="48" height="48" src="{$face}" alt="选择头像" /></a>
				<!-- user_head -->
			    <div id="headIconBox" class="layer_box" id="user_head">
			        <a href="" class="closed" onclick="return false;" >close</a>  
			        <ul class="user_head"><!--{loop $headIcons $key=>$headIcon}--><li><a href="" onclick="changeHeadIcon(this);return false;"><img src="{$headIcon}" alt="{$key}" width="48" height="48"></a></li><!--{/loop}--></ul>
			        <div class="clear"></div>
			        <div class="layer_pointer">&nbsp;</div>
			    </div>
				<!-- user_head -->
   			</div>
			<input id="isAdmin" type="hidden" value="{$isAdmin}" />
		</div>
  		<div class="message_content">
        <div id="countNum" class="word_numb">你还可以输入<span class="pipslim">200</span>个字</div>
        <div><label for="nickname">昵称</label>
        <!--{if $_SESSION["___isadmin"]}-->
       	 管理员
        <!--{else}-->
        <span class="text_inputbg" ><input id="nickname" type="text" maxLength="8"/></span>
        <!--{/if}-->
        </div>
        <div class="textareabg"><textarea cols="" rows="" id="messageArea" ></textarea></div>
        <ul class="message_option">
			<!-- <li><a href="" class="face" onclick="showFace(this,'messageArea',-10,30);return false;">表情</a></li> -->
            <!--{if !$_SESSION["___isadmin"]}-->
            <li><input type="checkbox" id="toAdmin" class="checkbox" /> <label for="toAdmin">以悄悄话方式发送给管理员</label></li>
            <!--{/if}-->
		</ul>
        <div class="right_btn">
        <a id="messageSubmit" class="btn disabled" href="" onclick="return false;"><span><!--{if $_SESSION["___isadmin"]}-->发布公告<!--{else}-->发 布<!--{/if}--></span></a></div>
        </div>
	</div>
	<ul class="comments_box">
	<!--{if $_pagelist}-->
		<!--{loop $_pagelist $p}-->
		<!--comments_box-->
		<li id="mess_{$p['id']}">
			<div class="head_box">
				<div class="head_pic"><img  width="48" height="48" src="{$p['headpic']}" /></div>
				<div class="user_name">{$p["nickname"]}</div>
			</div>
			<div class="comments_main">
	            <div class="comm_top"></div>
	            <div class="comm_mid">
	            	<!--{if $p["ispower"] == 1 && !$_SESSION["___isadmin"]}-->
	            	<p class="gray">(该留言以悄悄话形式发送给管理员)</p>
	            	<!--{else}-->
		            <p>{$p["content"]}</p>
		            <!--{/if}-->
		            <div class="line"></div>
		            <div class="record">
		            	<div class="source">
							<!--{if $_SESSION["___isadmin"]}-->
							<a href="" onClick="showCommentBox({$p['id']});return false;" title="回复">回复</a><a href="" onClick="delPost({$p['id']});return false;" class="noborder">删除</a>
							<!--{/if}-->
						</div><!--{eval echo date("Y-m-d H:i",$p["createtime"])}--><!--{eval if ($p['ispower']) echo "<small style='color:#F08300'>(悄悄话)</small>"}--><!--{if $_SESSION["___isadmin"]}--><em>|</em>IP:{$p['ip']}<!--{/if}-->
					</div>
	            </div>
	            <div class="comm_btm"></div>
	            <!--{if $p["replay"]}-->
				<!--comments_box-->
	            {$p["replay"]}
				<!--comments_box-->
				<!--{/if}-->
			</div>
			<div class="clear"></div>
		</li>
		<!--{/loop}-->
	<!--{else}-->
		<li class="noborder attention_tip">
			<div class="head_box">
				<div class="head_pic"><img width="48" height="48" src="{$adminInfo['headpic']}"></div>
				<div class="user_name">管理员</div>
			</div>
			<div class="comments_main">
	            <div class="comm_top"></div>
	            <div class="comm_mid">
		            <p>还没有留言哦，赶快来写第一条留言吧！</p>
		            <div class="line"></div>
		            <div class="record"><!--{eval echo date("Y-m-d H:i",time())}--></div>
	            </div>
	            <div class="comm_btm"></div>
			</div>
		</li>
	<!--{/if}-->
	</ul>
	<!--pagenav-->
	<div class="clear"></div>
	<div class="pagenav">
		{$pagestr}
		<!--<a title="末页" href="#">首页<em class="pagenumber">&lt;&lt;</em></a><em class="pagenumber"><span class="extend">...</span><a href="#">&lt;&lt;</a><a title="2" href="#">2&nbsp;|</a><a title="3" href="#">3&nbsp;|</a><span class="current">4&nbsp;|&nbsp;</span><a title="5" href="#">5&nbsp;|</a><a title="6" href="#">6&nbsp;|</a><a href="#">&gt;&gt;</a><span class="extend">...</span></em><a title="末页" href="#">末页<em class="pagenumber">&gt;&gt;</em></a><span class="pages">&nbsp;4/7&nbsp;|&nbsp;共17页</span>-->
	</div>
	<!--pagenav-->
	<!-- face -->
	<!-- 
	<div id="faceBox" class="layer_box">
		<a href="" class="closed" onclick="return false;">close</a>
	    <ul class="faces_icons"><!--{loop $faces $key=>$face}--><li><a href="" title="{$key}" value="[{$key}]" onclick="return false;"><img src="{$face}" alt="{$key}"/></a></li><!--{/loop}--></ul>
    	<div class="clear"></div>
    	<div class="layer_pointer">&nbsp;</div>
    </div>
    -->
    <!-- face -->
    <input id="pageNum" type="hidden" value="{$pageNum}" />
</div>
<div id="sidebar">
	<div class="special_area">        	
		<div class="head_pic"><img src="{$adminInfo['headpic']}" class="adminHead" alt="" width="48" height="48" /></div>
		<div class="admin_name">管理员</div>
	</div>
    <div class="notice_board"></div>
    <div class="clear"></div>
    <div class="notice_content">
		<ul class="feedback">
			<!--{if $_boardlist}-->
				<!--{loop $_boardlist $k=>$b}-->
				<li id="mess_{$b['id']}" class="<!--{if $k+1 == count($_boardlist)}-->noborder<!--{/if}--><!--{if $b['istop']}-->top_notice<!--{/if}-->" >
					<p>{$b['content']}</p>
					<div class="record">
					<!--{if $_SESSION["___isadmin"]}-->
					<span class="right">
						<!--{if $b['istop']}--><a href="" onclick="unsetTop({$b['id']});return false;">取消置顶</a><!--{else}--><a href="" onclick="setTop({$b['id']});return false;">置顶</a><!--{/if}-->&nbsp;&nbsp;<a href="" onclick="delPost({$b['id']});return false;">删除</a>
					</span>
					<!--{/if}-->
					<!--{eval echo date("Y-m-d H:i",$b["createtime"])}--><!--{if $_SESSION["___isadmin"]}--><em>|</em>IP:{$b['ip']}<!--{/if}--></div>
					<div class="clear"></div>
				</li>
				<!--{/loop}-->
			<!--{else}-->
				<li class="noborder attention_tip">欢迎光临我们的网吧，您可以在留言板发表对我们网吧的意见和建议，祝您在网吧玩的愉快！</li>
			<!--{/if}-->
		</ul>
		 <div class="comm_btm"></div> 
    </div>
</div>
{template foot}